package model.command;
import controller.KeyListeners.KeyListenerSet;
import model.playable.Playable;
/**
 *
 * @author joseph
 */
public class Prospect extends PlayableCommand {
    public Prospect(Playable playable){
        super(playable);
    }
    @Override
    public void attachToListener() {
        getListeners().attachToEnterListener(clone());
    }
    @Override
    public Prospect clone() {
        return new Prospect(getPlayable());
    }
    @Override
    public void executeCommand() {
        ((Prospectable)getPlayable()).prospect();
    }
    @Override
    public String toString(){
        return "Prospect";
    }
}
